<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/erp/T_order_item.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/erp/T_order_item.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'c_id',
                    footer: "Foots",
                    cnName: 't_order_item',
                    name: 'T_order_item',
                    url: "/T_order_item/",
                    sortName: "c_id"
                },
                extend: extend,
                editFormFields: {"c_card_face_id":"","c_member_id":"","c_num":"","c_operator_account":"","c_operator_id":"","c_operator_name":"","c_order_id":"","c_original_unit_price":"","c_out_item_id":"","c_out_ticket_no":"","c_parent_card_face_id":"","c_parent_card_id":"","c_real_deposit":"","c_real_id":"","c_item_name":"","c_real_id_type":"","c_real_phone":"","c_real_type":"","c_real_type_name":"","c_real_unit_price":"","c_remark":"","c_service_point_id":"","c_service_point_name":"","c_settlement_time":"","c_sku":"","c_snowseason":"","c_source":"","c_start_play_time":"","c_status":"","c_real_name":"","c_take_time":"","c_item_id":"","c_item_category_id":"","c_card_id":"","c_continue_item_id":"","c_coupon_category_id":"","c_coupon_category_name":"","c_coupon_code":"","c_coupon_discount":"","c_coupon_id":"","c_coupon_name":"","c_coupon_price":"","c_coupon_type":"","c_create_time":"","c_deposit":"","c_device_code":"","c_item_category_name":"","c_duration":"","c_end_play_time":"","c_group":"","c_id":"","c_international":"","c_is_back":"","c_is_back_consume":"","c_is_can_back":"","c_is_continue":"","c_is_member_price":"","c_is_payment":"","c_is_payment_deposit":"","c_is_real_name":"","c_is_secret_price":"","c_duration_gift":"","c_use_status":""},
                editFormOptions: [[{"title":"c_card_face_id","field":"c_card_face_id","type":"text"},
                               {"title":"c_member_id","field":"c_member_id","type":"text"},
                               {"title":"数量","field":"c_num","type":"text"},
                               {"title":"c_operator_account","field":"c_operator_account","type":"text"}],
                              [{"title":"c_operator_id","field":"c_operator_id","type":"text"},
                               {"title":"c_operator_name","field":"c_operator_name","type":"text"},
                               {"title":"c_order_id","field":"c_order_id","disabled":true,"type":"text"},
                               {"title":"原价格","field":"c_original_unit_price","type":"text"}],
                              [{"title":"c_out_item_id","field":"c_out_item_id","type":"text"},
                               {"title":"c_out_ticket_no","field":"c_out_ticket_no","disabled":true,"type":"text"},
                               {"title":"c_parent_card_face_id","field":"c_parent_card_face_id","type":"text"},
                               {"title":"c_parent_card_face_id","field":"c_parent_card_id","type":"text"}],
                              [{"title":"实收押金","field":"c_real_deposit","type":"text"},
                               {"title":"c_real_id","field":"c_real_id","type":"text"},
                               {"title":"c_item_name","field":"c_item_name","type":"text"},
                               {"title":"证件类型","field":"c_real_id_type","type":"text"}],
                              [{"title":"c_real_phone","field":"c_real_phone","type":"text"},
                               {"title":"实名类型","field":"c_real_type","type":"text"},
                               {"title":"c_real_type_name","field":"c_real_type_name","type":"text"},
                               {"title":"实价格","field":"c_real_unit_price","type":"text"}],
                              [{"title":"c_remark","field":"c_remark","disabled":true,"type":"text"},
                               {"title":"c_service_point_id","field":"c_service_point_id","type":"text"},
                               {"title":"c_service_point_name","field":"c_service_point_name","type":"text"},
                               {"title":"结算时间","field":"c_settlement_time","type":"text"}],
                              [{"title":"c_sku","field":"c_sku","type":"text"},
                               {"title":"雪季","required":true,"field":"c_snowseason","type":"text"},
                               {"title":"c_source","field":"c_source","type":"text"},
                               {"title":"预约开始时间","field":"c_start_play_time","type":"datetime"}],
                              [{"title":"状态2、已结算1、结算中","field":"c_status","type":"text"},
                               {"title":"c_real_name","field":"c_real_name","type":"text"},
                               {"title":"出票时间","field":"c_take_time","type":"text"},
                               {"title":"c_item_id","field":"c_item_id","type":"text"}],
                              [{"title":"c_item_category_id","field":"c_item_category_id","disabled":true,"type":"text"},
                               {"title":"c_card_id","field":"c_card_id","disabled":true,"type":"text"},
                               {"title":"c_continue_item_id","field":"c_continue_item_id","type":"text"},
                               {"title":"c_coupon_category_id","field":"c_coupon_category_id","type":"text"}],
                              [{"title":"c_coupon_category_name","field":"c_coupon_category_name","type":"text"},
                               {"title":"c_coupon_code","field":"c_coupon_code","type":"text"},
                               {"title":"折扣券折扣（弃用）","field":"c_coupon_discount","type":"text"},
                               {"title":"c_coupon_id","field":"c_coupon_id","type":"text"}],
                              [{"title":"c_coupon_name","field":"c_coupon_name","type":"text"},
                               {"title":"折扣券折扣金额（弃用）","field":"c_coupon_price","type":"text"},
                               {"title":"c_coupon_type","field":"c_coupon_type","type":"text"},
                               {"title":"创建时间","field":"c_create_time","disabled":true,"type":"text"}],
                              [{"title":"押金","field":"c_deposit","type":"text"},
                               {"title":"c_device_code","field":"c_device_code","type":"text"},
                               {"title":"c_item_category_name","field":"c_item_category_name","type":"text"},
                               {"title":"限时","field":"c_duration","type":"text"}],
                              [{"title":"预约结束时间","field":"c_end_play_time","type":"datetime"},
                               {"title":"c_group","field":"c_group","type":"text"},
                               {"title":"c_id","required":true,"field":"c_id","disabled":true,"type":"text"},
                               {"title":"c_international","field":"c_international","type":"text"}],
                              [{"title":"是否已退","field":"c_is_back","type":"text"},
                               {"title":"是否退消费金","field":"c_is_back_consume","type":"text"},
                               {"title":"是否可退","field":"c_is_can_back","type":"text"},
                               {"title":"是否是续单（弃用）","field":"c_is_continue","type":"text"}],
                              [{"title":"是否会员价","field":"c_is_member_price","type":"text"},
                               {"title":"是否支付","field":"c_is_payment","type":"text"},
                               {"title":"是否线上支付押金","field":"c_is_payment_deposit","type":"text"},
                               {"title":"是否实名制购买","field":"c_is_real_name","type":"text"}],
                              [{"title":"是否价格保密","field":"c_is_secret_price","type":"text"},
                               {"title":"让时","field":"c_duration_gift","type":"text"},
                               {"title":"使用状态","field":"c_use_status","type":"text"}]],
                searchFormFields: {},
                searchFormOptions: [],
                columns: [{field:'c_card_face_id',title:'c_card_face_id',type:'string',width:120,align:'left',sortable:true},
                       {field:'c_member_id',title:'c_member_id',type:'string',width:120,align:'left'},
                       {field:'c_num',title:'数量',type:'int',width:120,align:'left'},
                       {field:'c_operator_account',title:'c_operator_account',type:'string',width:120,align:'left'},
                       {field:'c_operator_id',title:'c_operator_id',type:'string',width:120,align:'left'},
                       {field:'c_operator_name',title:'c_operator_name',type:'string',width:120,align:'left'},
                       {field:'c_order_id',title:'c_order_id',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_original_unit_price',title:'原价格',type:'decimal',width:120,align:'left'},
                       {field:'c_out_item_id',title:'c_out_item_id',type:'string',width:120,align:'left'},
                       {field:'c_out_ticket_no',title:'c_out_ticket_no',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_parent_card_face_id',title:'c_parent_card_face_id',type:'string',width:120,align:'left'},
                       {field:'c_parent_card_id',title:'c_parent_card_face_id',type:'string',width:120,align:'left'},
                       {field:'c_real_deposit',title:'实收押金',type:'decimal',width:120,align:'left'},
                       {field:'c_real_id',title:'c_real_id',type:'string',width:120,align:'left'},
                       {field:'c_item_name',title:'c_item_name',type:'string',width:120,align:'left'},
                       {field:'c_real_id_type',title:'证件类型',type:'int',width:120,align:'left'},
                       {field:'c_real_phone',title:'c_real_phone',type:'string',width:120,align:'left'},
                       {field:'c_real_type',title:'实名类型',type:'int',width:120,align:'left'},
                       {field:'c_real_type_name',title:'c_real_type_name',type:'string',width:120,align:'left'},
                       {field:'c_real_unit_price',title:'实价格',type:'decimal',width:120,align:'left'},
                       {field:'c_remark',title:'c_remark',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_service_point_id',title:'c_service_point_id',type:'string',width:120,align:'left'},
                       {field:'c_service_point_name',title:'c_service_point_name',type:'string',width:120,align:'left'},
                       {field:'c_settlement_time',title:'结算时间',type:'bigint',width:120,align:'left'},
                       {field:'c_sku',title:'c_sku',type:'string',width:120,align:'left'},
                       {field:'c_snowseason',title:'雪季',type:'string',width:120,require:true,align:'left'},
                       {field:'c_source',title:'c_source',type:'string',width:120,align:'left'},
                       {field:'c_start_play_time',title:'预约开始时间',type:'bigint',width:120,align:'left'},
                       {field:'c_status',title:'状态2、已结算1、结算中',type:'int',width:120,align:'left'},
                       {field:'c_real_name',title:'c_real_name',type:'string',width:120,align:'left'},
                       {field:'c_take_time',title:'出票时间',type:'bigint',width:120,align:'left'},
                       {field:'c_item_id',title:'c_item_id',type:'string',width:120,align:'left'},
                       {field:'c_item_category_id',title:'c_item_category_id',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_card_id',title:'c_card_id',type:'string',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_continue_item_id',title:'c_continue_item_id',type:'string',width:120,align:'left'},
                       {field:'c_coupon_category_id',title:'c_coupon_category_id',type:'string',width:120,align:'left'},
                       {field:'c_coupon_category_name',title:'c_coupon_category_name',type:'string',width:120,align:'left'},
                       {field:'c_coupon_code',title:'c_coupon_code',type:'string',width:120,align:'left'},
                       {field:'c_coupon_discount',title:'折扣券折扣（弃用）',type:'decimal',width:120,align:'left'},
                       {field:'c_coupon_id',title:'c_coupon_id',type:'string',width:120,align:'left'},
                       {field:'c_coupon_name',title:'c_coupon_name',type:'string',width:120,align:'left'},
                       {field:'c_coupon_price',title:'折扣券折扣金额（弃用）',type:'decimal',width:120,align:'left'},
                       {field:'c_coupon_type',title:'c_coupon_type',type:'string',width:120,align:'left'},
                       {field:'c_create_time',title:'创建时间',type:'bigint',width:120,hidden:true,readonly:true,align:'left'},
                       {field:'c_deposit',title:'押金',type:'decimal',width:120,align:'left'},
                       {field:'c_device_code',title:'c_device_code',type:'string',width:120,align:'left'},
                       {field:'c_item_category_name',title:'c_item_category_name',type:'string',width:120,align:'left'},
                       {field:'c_duration',title:'限时',type:'decimal',width:120,align:'left'},
                       {field:'c_end_play_time',title:'预约结束时间',type:'bigint',width:120,align:'left'},
                       {field:'c_group',title:'c_group',type:'string',width:120,align:'left'},
                       {field:'c_id',title:'c_id',type:'string',width:120,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'c_international',title:'c_international',type:'string',width:120,align:'left'},
                       {field:'c_is_back',title:'是否已退',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_back_consume',title:'是否退消费金',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_can_back',title:'是否可退',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_continue',title:'是否是续单（弃用）',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_member_price',title:'是否会员价',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_payment',title:'是否支付',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_payment_deposit',title:'是否线上支付押金',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_real_name',title:'是否实名制购买',type:'sbyte',width:120,align:'left'},
                       {field:'c_is_secret_price',title:'是否价格保密',type:'sbyte',width:120,align:'left'},
                       {field:'c_duration_gift',title:'让时',type:'decimal',width:120,align:'left'},
                       {field:'c_use_status',title:'使用状态',type:'int',width:120,align:'left'}],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
